package com.xiaoyy.sso.core.dao.mapper;

import com.xiaoyy.sso.core.dao.model.SysRouterFunc;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoyy.sso.core.dao.model.SysRouterFuncResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 路由功能表 Mapper 接口
 * </p>
 *
 * @author chenzh
 * @since 2020-06-17
 */
@Mapper
public interface SysRouterFuncMapper extends BaseMapper<SysRouterFunc> {
    /**
     * 获取用户权限范围内的路由下功能
     * */
    List<SysRouterFuncResult> selectApiByRouter(@Param("userId") String userId, @Param("routerId")String routerId);

}
